<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type='text/javascript' src='http://localhost/oshop/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/oshop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/oshop';
		WEB = 'http://localhost/oshop/admin.php';
		URL = 'http://localhost/oshop/admin.php/Index/Category/add';
		HDPHP = 'http://localhost/oshop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/oshop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/oshop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/oshop/hdphp/hdphp/Extend';
		APP = 'http://localhost/oshop/admin.php/Index';
		CONTROL = 'http://localhost/oshop/admin.php/Index/Category';
		METH = 'http://localhost/oshop/admin.php/Index/Category/add';
		GROUP = 'http://localhost/oshop/Oshop';
		TPL = 'http://localhost/oshop/Oshop/Admin/Index/Tpl';
		CONTROLTPL = 'http://localhost/oshop/Oshop/Admin/Index/Tpl/Category';
		STATIC = 'http://localhost/oshop/Static';
		PUBLIC = 'http://localhost/oshop/Oshop/Admin/Index/Tpl/Public';
		HISTORY = 'http://localhost/oshop/admin.php/Index/Category/index';
		HTTPREFERER = 'http://localhost/oshop/admin.php/Index/Category/index';
</script>
</head>
<body>
	<form action="" class="hd-form" method="post">
		<input type="hidden" name="pid" value="<?php echo _default($_GET['pid'],0);?>">
	  <div class="wrap">
	        <div class="menu_list">
	             <ul>
	             	<li>
	             		<a href="<?php echo U(index);?>">栏目列表</a>
	             	</li>
	             	<li>
	             		<a href="" class="action">添加栏目</a>
	             	</li>
	             </ul>
	        </div>
	        <div class="title-header">添加商品类型</div>
	        <table class="table1">
	        	    <tr>
	        	    	<th class="w150">栏目名称</th>
	        	    	<td>
	        	    		<input type="text" name="cname" id="" class="w300">
	        	    	</td>
	        	    </tr>
	        	    <tr>
	        	    	<th class="w150">商品类型</th>
	        	    	<td>
	        	    		<select name="gtid" id="">
	        	    		<?php $hd["list"]["gt"]["total"]=0;if(isset($goodsType) && !empty($goodsType)):$_id_gt=0;$_index_gt=0;$lastgt=min(1000,count($goodsType));
$hd["list"]["gt"]["first"]=true;
$hd["list"]["gt"]["last"]=false;
$_total_gt=ceil($lastgt/1);$hd["list"]["gt"]["total"]=$_total_gt;
$_data_gt = array_slice($goodsType,0,$lastgt);
if(count($_data_gt)==0):echo "";
else:
foreach($_data_gt as $key=>$gt):
if(($_id_gt)%1==0):$_id_gt++;else:$_id_gt++;continue;endif;
$hd["list"]["gt"]["index"]=++$_index_gt;
if($_index_gt>=$_total_gt):$hd["list"]["gt"]["last"]=true;endif;?>

	        	    			<option value="<?php echo $gt['aid'];?>"><?php echo $gt['gname'];?></option>
	        	    		<?php $hd["list"]["gt"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
	        	    		</select>
	        	    		
	        	    	</td>
	        	    </tr>
	        	    <tr>
	        	    	<th class="w150">关键字</th>
	        	    	<td>
	        	    		<input type="text" name="keywords" id="" class="w300">
	        	    	</td>
	        	    </tr>
	        	    <tr>
	        	    	<th class="w150">描述</th>
	        	    	<td>
	        	    		<textarea name="description" id="" cols="30" rows="10"  class="w400 h100"></textarea>
	        	    	</td>
	        	    </tr>
	        	    <tr>
	        	    	<th class="w150">栏目类型</th>
	        	    	<td>
	        	    		<label>普通栏目<input type="radio" name="cattype" id=""  value="1" checked=""></label>
	        	    		<label>封面栏目<input type="radio" name="cattype" id="" value="2"></label>
	        	    	</td>
	        	    </tr>
	        	    <tr>
	        	    	<th class="w150">单位</th>
	        	    	<td>
	        	    		<input type="text" name="unit" id="" class="w300">
	        	    	</td>
	        	    </tr>
	        	    <tr>
	        	    	<th class="w150">价格区间</th>
	        	    	<td>
	        	    		<input type="text" name="pricerange" id="" class="w300">
	        	    	</td>
	        	    </tr>
	        </table>
	     <div class="position-bottom">
	     	<input type="submit" value="确定" class="hd-success">
	     </div>
	</div>
	</form>
</body>
</html>